<template>
    <div class="learning-container">
      <h1>开发者编程学习的主要途径</h1>
      <ul class="learning-list">
        <li>
          <!-- <img src="online-courses.png" alt="在线课程" /> -->
          <h2>在线课程</h2>
          <p>通过在线学习平台（如 Coursera、Udemy）获取系统化的编程知识。</p>
        </li>
        <li>
          <!-- <img src="books.png" alt="书籍" /> -->
          <h2>书籍</h2>
          <p>阅读经典编程书籍（如《JavaScript权威指南》、《算法导论》）深入学习。</p>
        </li>
        <li>
          <!-- <img src="projects.png" alt="实践项目" /> -->
          <h2>实践项目</h2>
          <p>通过实际项目开发积累经验，解决真实问题。</p>
        </li>
        <li>
          <!-- <img src="community.png" alt="社区交流" /> -->
          <h2>社区交流</h2>
          <p>参与技术社区（如 GitHub、Stack Overflow）与其他开发者交流学习。</p>
        </li>
      </ul>
    </div>
  </template>
  
  <style scoped>
  .learning-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
  }
  
  .learning-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .learning-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .learning-list li:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  }
  
  .learning-list img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
  }
  
  h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
  }
  
  p {
    font-size: 14px;
    color: #666;
    text-align: center;
  }
  </style>